/*
* 统计分析
* */

import 'package:center_beijing/common/http_util.dart';

//获取统计数据
getAnalysisData(params) async {
  var responseJson = await HttpUtil().get("rheaservice/api/orderInfo/getDailyData",params:params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

//获取任务进度列表
getTaskProgress(params) async {
  var responseJson = await HttpUtil().get("rheaservice/api/planday/getDayPlanChartData",params:params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

//获取订单进度列表
getOrderProgress(params) async {
  var responseJson = await HttpUtil().get("rheaservice/api/orderInfo/getOrderChartData",params:params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

//获取堆场管理chart数据
getStorageChart(params) async {
  var responseJson = await HttpUtil().get("rheaservice/api/warehouse/getChartData",params:params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

//获取堆场管理库存数据
getStorageWarehouse(params) async {
  var responseJson = await HttpUtil().get("rheaservice/api/warehouse/getWarehouseState",params:params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

//获取运输进度数据（按日期）
getTranChart(params) async {
  var responseJson = await HttpUtil().get("rheaservice/api/transport/getTransportChartByDate",params:params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

//获取运输进度数据（按订单）
getTranChartByOrder(params) async {
  var responseJson = await HttpUtil().get("rheaservice/api/transport/getTransportChartByOrder",params:params);
  if(responseJson!=null){
    return responseJson;
  }else{
    return null;
  }
}

